#! /bin/bash
# 将远程目录copy到本地
#scp -P 2222  -r ecg@40.125.138.191:/home/ecg/ecg-python3.tar.gz  /opt/ecg-image/

#source=/mnt/sdb/backup/full/*
#dest=/mnt/sdb/backup/full

source=/home/ecg/shell/*
dest=/tmp/haha

echo "传送文件，源地址:" $source  "目标地址:"  $dest
scp -P 2222  -r ecg@40.125.138.191:$source  $dest
echo "传输完毕，查看目录："
ls $dest
